package org.example.rpc.test;

import org.example.rpc.core.registry.DefaultServiceRegistry;
import org.example.rpc.core.socket.server.SocketServer;
import org.example.rpc.core.socket.server.ServiceRegistry;

public class SocketTestServer {

    public static void main(String[] args) {
        HelloServiceImpl helloService = new HelloServiceImpl();
        ServiceRegistry serviceRegistry = new DefaultServiceRegistry();
        serviceRegistry.register(helloService);
        SocketServer rpcServer = new SocketServer(serviceRegistry);
        rpcServer.start(9000);
    }
}
